package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_controller_1 implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_controller_1() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_c_get_1_9 = new TagInfo("c:get", //$NON-NLS-1$
            1, 9,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_importsLocation_2_1 = new TagInfo("java:importsLocation", //$NON-NLS-1$
            2, 1,
            new String[] {
                "package", //$NON-NLS-1$
            },
            new String[] {
                "org.example", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_5_8 = new TagInfo("c:get", //$NON-NLS-1$
            5, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_8 = new TagInfo("c:get", //$NON-NLS-1$
            6, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_7_8 = new TagInfo("c:get", //$NON-NLS-1$
            7, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_8_8 = new TagInfo("c:get", //$NON-NLS-1$
            8, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_9_8 = new TagInfo("c:get", //$NON-NLS-1$
            9, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_10_8 = new TagInfo("c:get", //$NON-NLS-1$
            10, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_10_47 = new TagInfo("c:get", //$NON-NLS-1$
            10, 47,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($projectName)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_25_8 = new TagInfo("c:get", //$NON-NLS-1$
            25, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_format_26_1 = new TagInfo("java:format", //$NON-NLS-1$
            26, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_27_14 = new TagInfo("c:get", //$NON-NLS-1$
            27, 14,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_28_14 = new TagInfo("c:get", //$NON-NLS-1$
            28, 14,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_28_86 = new TagInfo("c:get", //$NON-NLS-1$
            28, 86,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($projectName)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_33_2 = new TagInfo("c:include", //$NON-NLS-1$
            33, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/java/controller/{$framework}/listEntity.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_34_2 = new TagInfo("c:include", //$NON-NLS-1$
            34, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/java/controller/{$framework}/listEntitys.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_36_2 = new TagInfo("c:include", //$NON-NLS-1$
            36, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/java/controller/{$framework}/viewEntity1.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_39_2 = new TagInfo("c:include", //$NON-NLS-1$
            39, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/java/controller/{$framework}/confirmDeleteEntity.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_41_2 = new TagInfo("c:include", //$NON-NLS-1$
            41, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/java/controller/{$framework}/deleteEntity.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_45_2 = new TagInfo("c:include", //$NON-NLS-1$
            45, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/java/controller/{$framework}/editEntity.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_48_2 = new TagInfo("c:include", //$NON-NLS-1$
            48, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/java/controller/{$framework}/newEntity.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_50_2 = new TagInfo("c:include", //$NON-NLS-1$
            50, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/java/controller/{$framework}/saveEntity.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_53_2 = new TagInfo("c:include", //$NON-NLS-1$
            53, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/java/controller/{$framework}/streamBinary.jet", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write("package ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_1_9 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_1_9); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_1_9.setRuntimeParent(null);
        _jettag_c_get_1_9.setTagInfo(_td_c_get_1_9);
        _jettag_c_get_1_9.doStart(context, out);
        _jettag_c_get_1_9.doEnd();
        out.write(".controller;");  //$NON-NLS-1$        
        out.write(NL);         
        RuntimeTagElement _jettag_java_importsLocation_2_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "importsLocation", "java:importsLocation", _td_java_importsLocation_2_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_importsLocation_2_1.setRuntimeParent(null);
        _jettag_java_importsLocation_2_1.setTagInfo(_td_java_importsLocation_2_1);
        _jettag_java_importsLocation_2_1.doStart(context, out);
        _jettag_java_importsLocation_2_1.doEnd();
        out.write(NL);         
        out.write("import java.util.Set;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.List;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_5_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_5_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_5_8.setRuntimeParent(null);
        _jettag_c_get_5_8.setTagInfo(_td_c_get_5_8);
        _jettag_c_get_5_8.doStart(context, out);
        _jettag_c_get_5_8.doEnd();
        out.write(".util.CmiHibernateProxyUtil;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_6_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_6_8.setRuntimeParent(null);
        _jettag_c_get_6_8.setTagInfo(_td_c_get_6_8);
        _jettag_c_get_6_8.doStart(context, out);
        _jettag_c_get_6_8.doEnd();
        out.write(".dao.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_7_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_7_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_7_8.setRuntimeParent(null);
        _jettag_c_get_7_8.setTagInfo(_td_c_get_7_8);
        _jettag_c_get_7_8.doStart(context, out);
        _jettag_c_get_7_8.doEnd();
        out.write(".domain.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_8_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_8_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_8_8.setRuntimeParent(null);
        _jettag_c_get_8_8.setTagInfo(_td_c_get_8_8);
        _jettag_c_get_8_8.doStart(context, out);
        _jettag_c_get_8_8.doEnd();
        out.write(".service.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_9_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_9_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_9_8.setRuntimeParent(null);
        _jettag_c_get_9_8.setTagInfo(_td_c_get_9_8);
        _jettag_c_get_9_8.doStart(context, out);
        _jettag_c_get_9_8.doEnd();
        out.write(".pagination.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_10_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_10_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_10_8.setRuntimeParent(null);
        _jettag_c_get_10_8.setTagInfo(_td_c_get_10_8);
        _jettag_c_get_10_8.doStart(context, out);
        _jettag_c_get_10_8.doEnd();
        out.write(".base.Cmi");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_10_47 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_10_47); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_10_47.setRuntimeParent(null);
        _jettag_c_get_10_47.setTagInfo(_td_c_get_10_47);
        _jettag_c_get_10_47.doStart(context, out);
        _jettag_c_get_10_47.doEnd();
        out.write("Controller;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("import javax.servlet.http.HttpServletRequest;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import javax.servlet.http.HttpServletResponse;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("import org.springframework.beans.factory.annotation.Autowired;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.springframework.context.annotation.Scope;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.springframework.stereotype.Controller;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.springframework.web.bind.annotation.ModelAttribute;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.springframework.web.bind.annotation.RequestMapping;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.springframework.web.bind.annotation.RequestParam;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.springframework.web.servlet.ModelAndView;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.springframework.web.bind.WebDataBinder;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.springframework.web.bind.annotation.InitBinder;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import org.springframework.web.bind.annotation.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_25_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_25_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_25_8.setRuntimeParent(null);
        _jettag_c_get_25_8.setTagInfo(_td_c_get_25_8);
        _jettag_c_get_25_8.doStart(context, out);
        _jettag_c_get_25_8.doEnd();
        out.write(".base.bean.CmiPagination;");  //$NON-NLS-1$        
        out.write(NL);         
        RuntimeTagElement _jettag_java_format_26_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_26_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_26_1.setRuntimeParent(null);
        _jettag_java_format_26_1.setTagInfo(_td_java_format_26_1);
        _jettag_java_format_26_1.doStart(context, out);
        JET2Writer _jettag_java_format_26_1_saved_out = out;
        while (_jettag_java_format_26_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(" ");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("@Controller(\"");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_27_14 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_27_14); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_27_14.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_get_27_14.setTagInfo(_td_c_get_27_14);
            _jettag_c_get_27_14.doStart(context, out);
            _jettag_c_get_27_14.doEnd();
            out.write("Controller\")");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("public class ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_28_14 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_28_14); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_28_14.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_get_28_14.setTagInfo(_td_c_get_28_14);
            _jettag_c_get_28_14.doStart(context, out);
            _jettag_c_get_28_14.doEnd();
            out.write("Controller extends Cmi");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_28_86 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_28_86); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_28_86.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_get_28_86.setTagInfo(_td_c_get_28_86);
            _jettag_c_get_28_86.doStart(context, out);
            _jettag_c_get_28_86.doEnd();
            out.write("Controller {");  //$NON-NLS-1$        
            out.write(NL);         
            //自动封装bean，包含dao、service、propertyEditor等都继承与CmiController
            //	<c:include template="templates/content/java/controller/variable.jet"/>
            //	
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_33_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_33_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_33_2.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_include_33_2.setTagInfo(_td_c_include_33_2);
            _jettag_c_include_33_2.doStart(context, out);
            _jettag_c_include_33_2.doEnd();
            RuntimeTagElement _jettag_c_include_34_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_34_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_34_2.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_include_34_2.setTagInfo(_td_c_include_34_2);
            _jettag_c_include_34_2.doStart(context, out);
            _jettag_c_include_34_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_36_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_36_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_36_2.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_include_36_2.setTagInfo(_td_c_include_36_2);
            _jettag_c_include_36_2.doStart(context, out);
            _jettag_c_include_36_2.doEnd();
            //	<c:include template="templates/content/java/controller/viewEntity2.jet"/>
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_39_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_39_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_39_2.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_include_39_2.setTagInfo(_td_c_include_39_2);
            _jettag_c_include_39_2.doStart(context, out);
            _jettag_c_include_39_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_41_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_41_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_41_2.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_include_41_2.setTagInfo(_td_c_include_41_2);
            _jettag_c_include_41_2.doStart(context, out);
            _jettag_c_include_41_2.doEnd();
            //<c:include template="templates/content/java/controller/deleteEntity2.jet"/>
            out.write("\t ");  //$NON-NLS-1$        
            out.write(NL);         
            //<c:include template="templates/content/java/controller/editEntity.jet"/>20190216
            RuntimeTagElement _jettag_c_include_45_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_45_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_45_2.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_include_45_2.setTagInfo(_td_c_include_45_2);
            _jettag_c_include_45_2.doStart(context, out);
            _jettag_c_include_45_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            //<c:include template="templates/content/java/controller/newEntity.jet"/>20190216
            RuntimeTagElement _jettag_c_include_48_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_48_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_48_2.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_include_48_2.setTagInfo(_td_c_include_48_2);
            _jettag_c_include_48_2.doStart(context, out);
            _jettag_c_include_48_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_50_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_50_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_50_2.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_include_50_2.setTagInfo(_td_c_include_50_2);
            _jettag_c_include_50_2.doStart(context, out);
            _jettag_c_include_50_2.doEnd();
            //<c:include template="templates/content/java/controller/saveEntity2.jet"/>
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_53_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_53_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_53_2.setRuntimeParent(_jettag_java_format_26_1);
            _jettag_c_include_53_2.setTagInfo(_td_c_include_53_2);
            _jettag_c_include_53_2.doStart(context, out);
            _jettag_c_include_53_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            //<c:include template="templates/content/java/controller/initBinder.jet"/>  
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("}");  //$NON-NLS-1$        
            out.write(NL);         
            out.write(NL);         
            _jettag_java_format_26_1.handleBodyContent(out);
        }
        out = _jettag_java_format_26_1_saved_out;
        _jettag_java_format_26_1.doEnd();
    }
}
